import request from '@/config/axios'

export interface TaskCalleeListVO {
        id: number
        name: string
        ownerUserId: number
        status: number
}

// 查询群呼任务呼叫名单列表
export const getTaskCalleeListPage = async (params) => {
    return await request.get({url: `/call/task-callee-list/page`, params})
}

// 查询群呼任务呼叫名单详情
export const getTaskCalleeList = async (id: number) => {
    return await request.get({url: `/call/task-callee-list/get?id=` + id})
}

// 新增群呼任务呼叫名单
export const createTaskCalleeList = async (data: TaskCalleeListVO) => {
    return await request.post({url: `/call/task-callee-list/create`, data})
}

// 修改群呼任务呼叫名单
export const updateTaskCalleeList = async (data: TaskCalleeListVO) => {
    return await request.put({url: `/call/task-callee-list/update`, data})
}

// 删除群呼任务呼叫名单
export const deleteTaskCalleeList = async (id: number) => {
    return await request.delete({url: `/call/task-callee-list/delete?id=` + id})
}

// 导出群呼任务呼叫名单 Excel
export const exportTaskCalleeList = async (params) => {
    return await request.download({url: `/call/task-callee-list/export-excel`, params})
}